// JavaScript Document
			$(document).ready(function(){
				var $liCur = $(".nav ul li.cur"),
				  curP = $liCur.position().left,
				  curW = $liCur.outerWidth(true),
				  $slider = $(".curBg"),
				  $navBox = $(".nav");
				 $targetEle = $(".nav ul li a"),
				 $slider.animate({
				    "left":curP,
				    "width":curW
				});
				 
				$targetEle.click(function () {
					  var $liCur = $(".nav ul li.cur");
					  $liCur.removeClass("cur");
					  $(this).parent().addClass("cur");					 
				}); 
				$targetEle.mouseenter(function () {
				  var $_parent = $(this).parent(),
					_width = $_parent.outerWidth(true),
					posL = $_parent.position().left;
				  
				  $slider.stop(true, false).animate({
					"left":posL,
					"width":_width
				  }, "fast");
				});
				
				$navBox.mouseleave(function (cur, wid) {
					var $liCur = $(".nav ul li.cur");
					curP = $liCur.position().left;
					curW = $liCur.outerWidth(true);
				  cur = curP;
				  wid = curW;
				  $slider.stop(true, false).animate({
					"left":cur,
					"width":wid
				  }, "fast");
				});
			});
			
			function reloadSlect(){
				$(document).ready(function(){
					var $liCur = $(".nav ul li.cur"),
					  curP = $liCur.position().left,
					  curW = $liCur.outerWidth(true),
					  $slider = $(".curBg"),
					  $navBox = $(".nav");
					 $targetEle = $(".nav ul li a"),
					 $slider.animate({
					    "left":curP,
					    "width":curW
					});
					 
					$targetEle.click(function () {
						  var $liCur = $(".nav ul li.cur");
						  $liCur.removeClass("cur");
						  $(this).parent().addClass("cur");					 
					}); 
					$targetEle.mouseenter(function () {
					  var $_parent = $(this).parent(),
						_width = $_parent.outerWidth(true),
						posL = $_parent.position().left;
					  
					  $slider.stop(true, false).animate({
						"left":posL,
						"width":_width
					  }, "fast");
					});
					
					$navBox.mouseleave(function (cur, wid) {
						var $liCur = $(".nav ul li.cur");
						curP = $liCur.position().left;
						curW = $liCur.outerWidth(true);
					  cur = curP;
					  wid = curW;
					  $slider.stop(true, false).animate({
						"left":cur,
						"width":wid
					  }, "fast");
					});
				});
			}
